#ifndef BULLET_H
#define BULLET_H
#include "map_view.h" 
class Bullet {
private:
    int bx, by;      
    int dir;         
    bool is_live;   
    int owner;      

public:
    void update_p(int x, int y) { bx = x; by = y; }
    void check_collision(Map& m);
    void set_islive(bool live) { is_live = live; }
    void set_dir(int d) { dir = d; }
    void set_owner(int o) { owner = o; }
    int getx() const { return bx; }
    int gety() const { return by; }
    bool isLive() const { return is_live; }
    int get_owner() const { return owner; }
};

#endif
